package com.jdd.modules.area.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdd.modules.area.entity.ChargeRulesModuleStep;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 停车场计费规则模块表
 * @Author: jdd
 * @Date:   2021-07-13
 * @Version: V1.0
 */
public interface ChargeRulesModuleStepMapper extends BaseMapper<ChargeRulesModuleStep> {

    List<ChargeRulesModuleStep> getChargeRulesModuleSteps(@Param("chargeRulesModuleId") String chargeRulesModuleId);

    Integer getNowTimeStepFee(@Param("chargeRulesModuleId") String chargeRulesModuleId, @Param("parkTime")Integer parkTime);

    Integer getMaxTimeStepFee(@Param("chargeRulesModuleId") String chargeRulesModuleId);
    Integer deleteByChargeRulesModuleId(@Param("chargeRulesModuleId") String chargeRulesModuleId);
    Integer deleteByChargeRulesModuleIdAndParkTime(@Param("chargeRulesModuleId") String chargeRulesModuleId,@Param("parkTime") Integer parkTime);
}
